package com.game.service.define;

public class GameDefine {
    public static final int GAME_MAIN = 200;

    //错误信息发送
    public static final int GAME_SUB_SOCKET_ERROR = 0xEE00;
    public static final int GAME_C_USER_NO_MONEY = 0XEE01;
    public static final int GAME_C_USER_GET_MONEY_ERROR = 0XEE02;
    public static final int GAME_SERVER_CLOSE = 0XEE03;


    public static final int GAME_SUB_SOCKET_SUCCESS = 99;
    public static final int GAME_C_SUB_USER_HEAD_INFO_RETURN = 97;


    public static final int GAME_C_SUB_ENTER_ROOM = 100;
    public static final int GAME_C_SUB_ENTER_ROOM_RETURN = 200;

    public static final int GAME_C_SUB_BET = 101;
    public static final int GAME_C_SUB_LEAVE_ROOM = 102;

    public static final int GAME_C_SUB_MATCH_WEAPON = 103;
    public static final int GAME_C_SUB_MATCH_WEAPON_RETURN = 203;


    public static final int GAME_C_SUB_MATCH_UP = 104;
    public static final int GAME_C_SUB_MATCH_UP_RETURN = 204;

    public static final int GAME_C_SUB_MATCH_HIT = 105;
    public static final int GAME_C_SUB_MATCH_HIT_RETURN = 205;

    public static final int GAME_C_SUB_MATCH_KILL_ONCE = 106;
    public static final int GAME_C_SUB_MATCH_KILL_ONCE_RETURN = 206;
    /***
     * 重新匹配
     */
    public static final int GAME_C_SUB_REMATCH = 107;
    public static final int GAME_C_SUB_REMATCH_RETURN = 207;
    /***
     * 再战一局
     */
    public static final int GAME_C_SUB_MATCH_AGAIN = 108;
    public static final int GAME_C_SUB_MATCH_AGAIN_RETURN = 208;
    /***
     * 游戏结束
     */
    public static final int GAME_C_SUB_MATCH_OVER = 109;
    public static final int GAME_C_SUB_MATCH_OVER_RETURN = 209;
    /***
     * 取消匹配,关闭桌子
     */
    public static final int GAME_C_SUB_MATCH_CLOSE_TABLE = 110;
    public static final int GAME_C_SUB_MATCH_CLOSE_TABLE_RETURN = 210;

    /***
     * 离开桌子,回到匹配大厅
     */
    public static final int GAME_C_SUB_MATCH_EXIT_TABLE = 111;
    public static final int GAME_C_SUB_MATCH_EXIT_TABLE_RETURN = 211;
    /**
     * 游戏开始
     */
    public static final int GAME_C_SUB_MATCH_GAME_START = 112;
    public static final int GAME_C_SUB_MATCH_GAME_START_RETURN = 212;
    /**
     * 游戏桌子创建
     */
    public static final int GAME_C_SUB_MATCH_CREATE_TABLE = 113;
    public static final int GAME_C_SUB_MATCH_CREATE_TABLE_RETURN = 213;
    /**
     * 获取比赛头像
     */
    public static final int GAME_C_SUB_MATCH_HEAD_INFO = 114;
    public static final int GAME_C_SUB_MATCH_HEAD_INFO_RETURN = 214;
    /***
     * 直播PK-创建
     */
    public static final int GAME_C_SUB_CREATE_LIVE_PK_MATCH = 115;
    public static final int GAME_C_SUB_CREATE_LIVE_PK_MATCH_RETURN = 215;

    /***
     * 直播PK,收到信息后加入
     */
    public static final int GAME_C_SUB_JOIN_LIVE_PK_MATCH = 116;
    public static final int GAME_C_SUB_JOIN_LIVE_PK_MATCH_RETURN = 216;


    /***
     * 游客登录
     */
    public static final int GAME_C_SUB_SPECTATOR_ENTER = 117;
    public static final int GAME_C_SUB_SPECTATOR_ENTER_RETURN = 217;

    /***
     * 围观直播PK
     */
    public static final int GAME_C_SUB_VIEWING_LIVE_PK_MATCH = 118;
    public static final int GAME_C_SUB_VIEWING_LIVE_PK_MATCH_RETURN = 218;



    public static final int ADMIN_ID = 0xAAAA;
    /**
     * 玩家血量,默认1000
     */
    public static final int PLAYER_HP = 1000;
    /**
     * 最小匹配金额，不得低于参赛费
     */
    public static final int TABLE_MIN_LOGIN = 10000;
    /**
     * 单局参赛费
     */
    public static final int TABLE_ENTRY_FEE = 10000;
    /**
     * 单局比赛最大持续时间,超时自动结算
     */
    public static final int MATCH_DURATION = 300;
    /**
     * 继续比赛最大时间,超时自动关闭房间
     */
    public static final int DESTROY_TIME = 30;
    /**
     * 匹配-最大时时间,超时自动关闭房间
     */
    public static final int MATCH_MAX_TIME = 120;

    /**
     * 对局胜利数,3局2胜，5局3胜,设置胜利场数即可
     */
    public static final int MATCH_WIN_NUMBER = 1;

    public static final int HIT_HEAD = 4;
    public static final int HIT_CENTER = 2;
    public static final int HIT_FOOT = 1;


}
